package JUNHO.regexps;

import java.util.Scanner;

public class Rege
{

	/**
	 * @param args
	 */
//	public static void main(String[] args)
//	{
//		boolean b;
//		String s = "";
//		Scanner s1 = new Scanner("tr ala la");
//		while(b = s1.hasNext())
//		{
//			s+=s1.next();
//			System.out.println(s);
//		}
//	}
	
//	public static void main(String[] args)
//	{
//		boolean b;
//		int i = 0;
//		String s = "";
//		Scanner s1 = new Scanner("11 2 3 45");
//		while(b = s1.hasNextInt())
//		{
//			System.out.println(s1.nextInt());
//		}
//	}
	
	public static void main(String[] args)
	{
			boolean b;
			int i = 0;
			String s = "";
			
			Scanner s1 = new Scanner("tralala 12345 tralalaX tRUe false");
			while(b = s1.hasNext())
			{
				if(s1.hasNextBoolean())
					System.out.println(s1.nextBoolean());
				else if(s1.hasNextInt())
					System.out.println(s1.nextInt());
				else
				{
					s = s1.next();
					System.out.println(s);
				}
			}
	}

}
